--[[ 编码: WMS-16-12 名称: 盘点计划-点击后 作者:HAN 日期:2025-1-29 级别:项目型 函数: AfterClick 功能: 点击【盘点计划】后根据盘点类型来显示子表的页签 --]] wms_base = require( "wms_base" ) function AfterClick ( strLuaDEID ) local nRet, strRetInfo local count_type local hidden_page -- 获取 盘点计类型 nRet, count_type = m3.GetSysCurEditDataOneAttr( strLuaDEID, "S_TYPE" ) if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "GetSysCurEditDataOneAttr失败! "..wh_code ) end if ( count_type == "货品盘点") then hidden_page = '["盘点货位"]' else hidden_page = '["盘点货物"]' end local strAction = '[{"action_type":"hidden_page_tab","value":'..hidden_page..'}]' nRet, strRetInfo = mobox.setAction( strLuaDEID, strAction ) if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end end